fix(table): prevent update loop on server side pagination #733 - #761
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
📝 WalkthroughWalkthroughThe table’s ChangesTable pagination reset
Estimated code review effort: 2 (Simple) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/tedi/components/content/table/table.tsx (1)
1079-1079: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd regression coverage for both default modes.
Test omitted
autoResetPageIndexwith client-side pagination and withmanualPagination, in addition to the existing explicit-value test. This protects the new?? !manualPaginationbranch and satisfies the component coverage requirement.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/tedi/components/content/table/table.tsx` at line 1079, Add regression tests for the table configuration covering omitted autoResetPageIndex with client-side pagination and with manualPagination, alongside the existing explicit-value test. Verify the defaults resolve to true when manualPagination is disabled and false when it is enabled, exercising the autoResetPageIndex fallback.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/tedi/components/content/table/table.tsx`:
- Line 1079: Add regression tests for the table configuration covering omitted
autoResetPageIndex with client-side pagination and with manualPagination,
alongside the existing explicit-value test. Verify the defaults resolve to true
when manualPagination is disabled and false when it is enabled, exercising the
autoResetPageIndex fallback.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: fd2f0b89-d76e-4469-afdd-87c96fbe8c60
📒 Files selected for processing (1)
src/tedi/components/content/table/table.tsx
Summary by CodeRabbit